@model IEnumerable<Vms.Web.Models.LOG>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create", new { }, new { @class = "btn" })
</p>
<table class="table table-bordered table-striped">
    <tr>
        <th></th>
        <th>
            Time
        </th>
        <th>
            User_Id
        </th>
        <th>
            Controller
        </th>
        <th>
            Action
        </th>
        <th>
            Message
        </th>
        <th>
            Host
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.id }) |
            @Html.ActionLink("Details", "Details", new { id=item.id }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.id })
        </td>
        <td>
			@Html.DisplayTextFor(_ => item.Time).ToString()
        </td>
        <td>
			@item.User_Id
        </td>
        <td>
			@item.Controller
        </td>
        <td>
			@item.Action
        </td>
        <td>
			@item.Message
        </td>
        <td>
			@item.Host
        </td>
    </tr>
}

</table>


